﻿<shared:UserControlBase x:Class="HP.Cachalote.WPF.UserControls.TodoItemSearcherUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:shared="clr-namespace:HP.Cachalote.WPF.Shared"
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" 
             DataContext="{Binding TodoItemSearcher, Source={StaticResource Locator}}">
    <Grid>
        <Border BorderThickness="1" BorderBrush="#dcdcdc" Background="White" Padding="2">
            <xctk:WatermarkTextBox Text="{Binding SearchKeyWord, UpdateSourceTrigger=PropertyChanged}" VerticalContentAlignment="Center" Padding="0,0,22,0"
                               Watermark="Search Items" Foreground="#bdbdbd" BorderThickness="0">
                <xctk:WatermarkTextBox.WatermarkTemplate>
                    <DataTemplate>
                        <ContentControl Content="{Binding}" FontStyle="Italic" Foreground="DarkGray" FontSize="16" />
                    </DataTemplate>
                </xctk:WatermarkTextBox.WatermarkTemplate>
            </xctk:WatermarkTextBox>
        </Border>
        <Image VerticalAlignment="Center" Source="/Resources/Images/Search.png" Width="16" HorizontalAlignment="Right" Margin="4" />
    </Grid>
</shared:UserControlBase>
